package ru.space_game.gui;

import org.lwjgl.opengl.GL11;

public class SimpleMessage {

	private int x;

	private int y;

	private String message;

	private int color;

	private boolean visible = false;

	protected SimpleMessage(int x, int y, String message, int color,
			boolean visible) {
		this.x = x;
		this.y = y;
		this.message = message;
		this.color = color;
		this.visible = visible;
	}

	public void draw() {
		GL11.glColor3f(color >> 24, color >> 16, color >> 8);
		SimpleText.drawString(message, x, y);
		GL11.glColor3f(1, 1, 1);
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getColor() {
		return color;
	}

	public void setColor(int color) {
		this.color = color;
	}

	public boolean isVisible() {
		return visible;
	}

	public void setVisible(boolean visible) {
		this.visible = visible;
	}

}
